package com.kayt.cyberBar.cpublic.business.service;

import javax.ws.rs.Consumes;
import javax.ws.rs.GET;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.QueryParam;

import com.kayt.cyberBar.common.PageData;
import com.kayt.cyberBar.common.ServerResponse;
import com.kayt.cyberBar.cpublic.business.entity.req.vo.PublicStoreReqVO;
import com.kayt.cyberBar.cpublic.business.entity.rsp.vo.PublicStoreRspVO;

@Path("/store")
public interface IPublicStoreService {
	@GET
	@Path("getStoreList.do")
	@Produces({"application/json" + ";charset=UTF-8"})
	@Consumes({"application/json"})
	public ServerResponse<PageData<PublicStoreRspVO>> getStoreList();

	@POST
	@Path("addStore.do")
	@Produces({"application/json" + ";charset=UTF-8"})
	@Consumes({"application/json"})
	public ServerResponse<PublicStoreRspVO> addStore(PublicStoreReqVO storeReqVO);
	
	@POST
	@Path("addQrImgUrl.do")
	@Produces({"application/json" + ";charset=UTF-8"})
	@Consumes({"application/json"})
	public ServerResponse<String> updateQrImgUrl(PublicStoreReqVO storeReqVO);
	
	@GET
	@Path("getQrImgUrl.do")
	@Produces({"application/json" + ";charset=UTF-8"})
	@Consumes({"application/json"})
	public ServerResponse<PublicStoreRspVO> getQrImgUrl(@QueryParam("storeCode")String storeCode);
	
	@POST
	@Path("updateStore.do")
	@Produces({"application/json" + ";charset=UTF-8"})
	@Consumes({"application/json"})
	public ServerResponse<PublicStoreRspVO> updateStore(PublicStoreReqVO storeReqVO);
	
	@GET
	@Path("deleteStore.do")
	@Produces({"application/json" + ";charset=UTF-8"})
	@Consumes({"application/json"})
	public ServerResponse<String> deleteStore(@QueryParam("id")String storeId);
}
